# New ports collection makefile for:	qdoc3
# Date created:		2009-08-20
# Whom:			Maxim Ignatenko <gelraen.ua@gmail.com>
#
# $FreeBSD: ports/devel/qt4-qdoc3/Makefile,v 1.3 2010/01/21 21:13:13 makc Exp $
#

PORTNAME=	qdoc3
PORTVERSION=	${QT4_VERSION}
CATEGORIES=	devel textproc
PKGNAMEPREFIX=	qt4-

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Qt documentation generator

USE_QT_VER=	4
QT_COMPONENTS=	qmake_build corelib xml
QT_NONSTANDART=	yes
QT_DIST=	yes

HAS_CONFIGURE=	yes

EXTRACT_AFTER_ARGS=	| ${TAR} -xf - --include '${DISTNAME}/tools/${PORTNAME}'

PLIST_FILES=	bin/${PORTNAME}

WRKSRC=	${WRKDIR}/${DISTNAME}/tools/${PORTNAME}

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
		${QMAKE} -unix PREFIX=${PREFIX} ${PORTNAME}.pro

do-install:
	${INSTALL_PROGRAM} "${WRKSRC}/${PORTNAME}" "${PREFIX}/bin/${PORTNAME}"

.include <bsd.port.mk>
